import junit.framework.Assert;

import org.junit.Before;
import org.junit.Test;

public class TenthFrameTest
{
	TenthFrame tf=new TenthFrame();
	@Before
	public void SetUp()
	{
		
	}
	@Test
	public void ShouldBeScore18()
	{
		tf.bowl(10);
		tf.bowl(3);
		tf.bowl(8);
		Assert.assertEquals(18, tf.getScore());
	}
	@Test
	public void ShouldBeScore25()
	{
		tf.bowl(10);
		tf.bowl(10);
		tf.bowl(5);
		Assert.assertEquals(25, tf.getScore());
	}
	@Test
	public void ShouldBeScore23()
	{
		tf.bowl(10);
		tf.bowl(10);
		tf.bowl(3);
		Assert.assertEquals(23, tf.getScore());
	}
	@Test
	public void ShouldBeScore30()
	{
		tf.bowl(10);
		tf.bowl(10);
		tf.bowl(10);
		Assert.assertEquals(30, tf.getScore());
	}
}
